home *** CD-ROM | disk | FTP | other *** search
-
- On Tue, 28 Nov 1995, Magnus Kollberg wrote:
-
- > Have everyone received the latest source from Doug? Did you all get
- > this nasty return corrupted files? :-(
- > I havn't got the time to fix them this week, but maybe someone else
- > would like to do it?
- > Is there anyone who have an idea how to fix this? :-(
-
- Well, I couldn't get the emacs thing to work (maybe a different keyboard
- setup to the machine it was originally done on), and anyway loading,
- fixing and saving all those files is a bit boring. So I wrote a small
- filter in PERL to do it. Save it off to fix.perl and "chmod a+x fix.perl"
- on your friendly local UNIX box and use it in the following way:
-
- > fix.perl < whatever.uue | uudecode
-
- You'll get the ZIP file out fine. Note that if perl isn't in
- /usr/local/bin on your UNIX system, you'll need to edit the first line
- (starting with #!). You can find out where perl is with the command
-
- > whereis perl
-
- (on SysVr4 systems, anyway). There you go: I don't know much about
- 030 or DSP assembler but maybe I contribute something to the project.
-
- ATB,
-
- Martin
-
- ------------------------8<-----------------------------
- #!/usr/local/bin/perl
- @input = <STDIN>;
- $istream = join("",@input);
- @lines = split("\n",$istream);
- $buffer = "";
- foreach $line (@lines) {
- $temp = $line;
- if (chop($temp) eq ' ') {
- $buffer .= $line;
- } else {
- print $buffer,$line,"\n";
- $buffer = "";
- }
- }
- ------------------------8<-----------------------------
-
- *****************************************************************
- * ---------------- M.J.Maisey@durham.ac.uk -------------------- *
- * - <A HREF="http://www.dur.ac.uk/~d408x2">WWW Home Page </A> - *
- *****************************************************************
-
-